<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
	<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
	<title>满箱选择查询</title>
	<link rel="stylesheet" type="text/css" href="../css/api.css" />
	<link rel="stylesheet" type="text/css" href="../css/aui.css" />
	<link rel="stylesheet" type="text/css" href="../css/aui.2.0.css" />
	<link rel="stylesheet" type="text/css" href="../css/aui-flex.css" />
	<link rel="stylesheet" type="text/css" href="../css/aui-list-swipe.css" />
	<link rel="stylesheet" type="text/css" href="../css/isDialog.css" />


	<style>
		body {
			font-family: Arial;
			background-color: #ffffff;
		}
		/* 输入框下面的列表标题行（未完成的检测单信息）样式 */

		p.cimc-grid-label {
			border-left: 0.25 rem solid rgba(22, 155, 213, 1);
			padding-left: 0.3 rem;
		}

		span.cimc-grid-label {
			color: #000;
			font-size: 16px;
		}

		ul.aui-list:before {
			height: 0px !important;
		}
		/**** 去掉条目的细线 ****/

		div.cimc-list-header {
			height: 1.8 rem !important;
			min-height: 0px !important;
		}
		/**** 每条条目的高度 ****/

		li.aui-list-item {
			min-height: 0px !important;
		}
		/* 去掉最小高度限制 */

		div.cimc-list-item-inner {
			min-height: 0px !important;
			/* 去掉最小高度限制 */
			padding-top: 0.2 rem;
			padding-right: 0.1 rem !important;
			height: 32px;
		}
		/* 去掉每一行自带的间隔线 */

		div.cimc-list-item-inner:after {
			height: 0px !important;
			background-color: #000000 !important;
		}
		/* 设置标签体字体大小 */

		div.cimc-list-item-inner-lable {
			text-align: left;
			padding-top: 0rem !important;
			padding-bottom: 0rem !important;
			text-align: left;
			font-size: 13px;
			/*width:50%;*/
		}

		.table {
			margin-bottom: 15px;
			width: 100%;
			border-collapse: collapse;
			font-size: 13px;
			width: 100%;
			border-collapse: collapse;
			border-spacing: 0;
		}

		.table td {
			height: 40px;
			text-align: center;
			border: 1px solid #CBD6DE;
			font-size: 12px;
			padding: 0;
			margin: 0;
			vertical-align: middle !important;
		}

		.weui-form-preview {
			position: static;
			margin-bottom: 56rpx;
			background-color: transparent;
			padding-top: 10rpx;
		}

		.weui-form-preview:before {
			border-top: none;
			border-bottom: none;
		}

		.weui-form-preview:after {
			border-top: none;
			border-bottom: none;
		}

		.weui-form-preview__hd {
			position: static;
		}

		.view-content-height {
			line-height: 15px;
			font-weight: normal;
			padding-top: 5px;
		}

		.weui-form-preview__hd:after {
			content: " ";
			position: absolute;
			left: 0;
			bottom: 0;
			right: 0;
			height: 1px;
			border-bottom: none;
			left: 15px;
			right: 15px;
		}

		.weui-form-preview__hd::before {
			border-bottom: none;
		}

		.card {
			border: 2px solid #ffffff;
			border-radius: 6px;
			background-color: #ffffff;
			margin: 6px;
			margin-top: -5px;
		}

		.inline {
			display: inline
		}

		.weui-form-preview__item {
			overflow: hidden
		}

		.btn_color {
			background-color: #33ffcc;
			color: white;
		}

		.btn_color-start {
			background-image: linear-gradient(to right, #E3E0E0, #F2F2F2);
			color: black;
		}

		.btn_color-after {
			background-image: linear-gradient(to right, #A3A3A3, #A1A1A1);
			color: black;
		}

		.btn_radius {
			border-radius: 15px;
		}

		.show {
			display: flex;
		}

		.hide {
			display: flex;
			display: none;
		}

		.state {
			overFlow-x: scroll;
			overFlow-y: hidden;
			white-space: nowrap;
		}

		.aui-btn-block {
			display: block;
			width: 100%;
			padding: 5px 0;
			margin-bottom: 0;
			font-size: 0.9rem;
		}

		.table thead {
			width: calc( 100% - 1em)
		}

		.table thead,
		tbody tr {
			display: table;
			width: 100%;
			table-layout: fixed;
		}

		.table tbody {
			display: block;
			height: 140px;
			overflow-y: scroll;
		}

		.form-label {
			margin: 0 auto;
			height: 35px;
			line-height: 35px;
			font-size: 20px;
		}

		.form-group {
			display: inline-block;
		}

		.form-label2 {
			float: left;
			width: 80px;
			height: 35px;
			line-height: 35px;
			text-align: right;
		}

		.form-control {
			margin-left: 15px;
			/*display: block;*/
			width: 120px;
			height: 35px;
			padding: 6px 12px;
			font-size: 2.73333vw;
			line-height: 1.5;
			color: #495057;
			background-color: #fff;
			background-clip: padding-box;
			border: 1px solid #ced4da;
			border-radius: 4px;
			transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
		}
	</style>
</head>

<body>
	<header class="aui-bar aui-bar-nav" id="header">
		<a class="aui-pull-left aui-btn" onclick="api.closeFrame();">
			<span class="aui-iconfont aui-icon-left"></span>
		</a>
		<div class="aui-title">
			工位上料
		</div>
	</header>
	<div class="aui-content-padded" style="display:flex;margin: 0.4rem;">
		<p>
			<!-- <div id="wip_btn" class="aui-btn aui-btn-block btn_radius" onclick="operate('1')">
				在制品满箱
			</div> -->
		</p>
		<p id="space_p" style="width:10px"></p>
		<p>
			<div id="hu_btn" class="aui-btn aui-btn-block btn_radius">
				物料
			</div>
		</p>
	</div>
	<div class='aui-list-item-inner cimc-list-item-inner' style='padding-top:5px;height:105px;border: 1px solid #cdc1c1;padding-left: 10px;background-color: #f5f5f5;'>
		<div class='aui-grid-label cimc-list-item-inner-lable' style='font-size:15px;width: 50%;float: left;'>
			工单:
			<input id="workOrderCode" style="font-size:15px;width:70%;border: 1px solid #B7B7B7; border-radius: 3px;"></input>
			<div id="workOrderCodeScan" style="padding-left: 135px; margin-top: -20px;">
				<img src="../image/scanner.png" />
			</div>
		</div>
		<div></div>
		<div class='aui-grid-label cimc-list-item-inner-lable state inline' style='font-size:15px;width: 50%;float: left;'>
			工位:
			<input id="opCode" style="font-size:15px;width:70%;border: 1px solid #B7B7B7; border-radius: 3px;"></input>
			<div id="workCellCodeScan" style="padding-left: 135px; margin-top: -20px;">
				<img src="../image/scanner.png" />
			</div>
		</div>
		<!-- <div style="margin-top:30px"> -->
		<!-- <div id="opName" class='aui-grid-label cimc-list-item-inner-lable state inline' style = 'font-size:15px;width: 45%;float: left;'>
			本工序:
		</div> -->
		<!-- <div></div> -->
		<!-- <div id="lastOpName" class='aui-grid-label cimc-list-item-inner-lable state inline' style = 'margin-left:16px;font-size:15px;width: 50%;float: left;'>
			前工序:
		</div> -->
		<!-- </div> -->
		<div></div>
		<div id="mrl" class='aui-grid-label cimc-list-item-inner-lable state inline' style='font-size:15px;width: 100%;float: left;'>
			产品:
		</div>
		<div></div>
		<div id="planQty" class='aui-grid-label cimc-list-item-inner-lable inline' style='font-size:15px;width: 33%;float: left;'>
			计划:
		</div>
		<div id="effectiveQty" class='aui-grid-label cimc-list-item-inner-lable inline' style='font-size:15px;width: 33%;float: left;'>
			良品:
		</div>
		<div id="uneffectiveQty" class='aui-grid-label cimc-list-item-inner-lable inline' style='font-size:15px;width: 33%;float: left;'>
			不良品:
		</div>

	</div>

	</div>

	<div id="searchDiv2" class="aui-form">
		<ul class="aui-list aui-form-list" style="font-size: 14px;">
			<li class="aui-list-item">
				<div class="aui-list-item-inner" style="width:100%">
					<div class="aui-list-item-label1" style="margin-top:5px;font-size: 14px;">
						<img src="../image/scanner.png" />
					</div>
					<input class="aui-input" placeholder=" 请输入物料(扫码上料) " style="width: 80%;font-size: 18px;" id="huCode2" onkeydown="onkeydownHuCode2()" onclick="getIdSelector();" />
					<i class="aui-input-addon aui-iconfont aui-icon-scan " style="padding-right:10px;font-size: 1.6rem" onclick="toScanner('huCode2');"></i>
				</div>
			</li>
		</ul>
	</div>
	<div class='aui-list-item-inner cimc-list-item-inner' style='margin-top:5px;height:30px;border: 1px solid #cdc1c1;padding-left: 10px;background-color: #f5f5f5;'>
		<div class="aui-list-item-label1" style="margin-top:6px;font-size: 14px;float:left;width:5%">
			<img src="../image/peeding.png" />
		</div>
		<div class='aui-grid-label cimc-list-item-inner-lable inline' style='margin-top: 4px;font-weight: 650; font-family: "Microsoft soft";font-size:15px;width:50%;float: left;'>
			工单上料汇总
		</div>
		<div onclick="goReport()" class="aui-list-item-label1" style="margin-top:6px;font-size: 14px;float:left;width:5%;margin-left: 60px;">
			<img src="../image/report.png" />
		</div>
		<div onclick="goReport()" class='aui-grid-label cimc-list-item-inner-lable inline' style='margin-top: 4px;font-weight: 650; font-family: "Microsoft soft";font-size:15px;width: 15%;float: left;margin-left: 5px;'>
			去报工
		</div>
		<!-- <div onclick="huFeeding()" class='aui-grid-label cimc-list-item-inner-lable inline' style = 'margin-top: 4px;font-weight: 650; font-family: "Microsoft soft";font-size:15px;width: 10%;float: right;margin-right: 15px;'>
					上料
			</div>
			<div onclick="huFeeding()" class="aui-list-item-label1" style="margin-top:6px;font-size: 14px;float:right;width:5%;margin-right: 5px;">
				<img src="../image/inStorage.png" />
			</div> -->
	</div>
	<div class="table-responsive" id="appStorage" style="overflow-y:auto">
		<table id="tab" class="table table-bordered " style="table-layout: fixed;">
			<thead>
				<tr id="tr1" style="text-align: center;background-color: #DCE9F2;color: #467aa7;font-family: 微软雅黑;font-size: 13px;font-weight: bold;">
					<td style="display: none"></td>
					<td style="display: none">id</td>

					<td>物料编码</td>
					<td>物料名称</td>
					<td>应上料数</td>
					<td>已上料数</td>
					<td style="display: none">反冲标志</td>
					<td style="display: none">满箱号</td>
				</tr>
			</thead>
			<tbody id="noMrlLine_tb">
			</tbody>
		</table>
	</div>
	<div class='aui-list-item-inner cimc-list-item-inner' style='margin-top:5px;height:30px;border: 1px solid #cdc1c1;padding-left: 10px;background-color: #f5f5f5;'>
		<div class="aui-list-item-label1" style="margin-top:6px;font-size: 14px;float:left;width:5%">
			<img src="../image/peeding.png" />
		</div>
		<div class='aui-grid-label cimc-list-item-inner-lable inline' style='margin-top: 4px;font-weight: 650; font-family: "Microsoft soft";font-size:15px;width:30%;float: left;'>
			工单上料明细
		</div>

		<!-- <div onclick="clearHuFeed()" class='aui-grid-label cimc-list-item-inner-lable inline' style = 'margin-top: 4px;font-weight: 650; font-family: "Microsoft soft";font-size:15px;width: 10%;float: right;margin-right: 15px;'>
					清除
			</div> -->
		<!-- <div onclick="clearHuFeed()" class="aui-list-item-label1" style="margin-top:6px;font-size: 14px;float:right;width:5%">
				<img src="../image/x.png" style="width:15px;height:10px" />
			</div> -->

		<!-- <div onclick="returnHuFeed()" class='aui-grid-label cimc-list-item-inner-lable inline' style = 'margin-top: 4px;font-weight: 650; font-family: "Microsoft soft";font-size:15px;width: 20%;float: right;margin-right: 15px;'>
					回线边库
			</div>
			<div onclick="returnHuFeed()" class="aui-list-item-label1" style="margin-top:6px;font-size: 14px;float:right;width:5%">
				<img src="../image/back.png" />
			</div> -->
	</div>
	<div class="table-responsive" id="appStorage" style="overflow-y:auto">
		<table id="tab" class="table table-bordered " style="table-layout: fixed;">
			<thead>
				<tr id="tr1" style="text-align: center;background-color: #DCE9F2;color: #467aa7;font-family: 微软雅黑;font-size: 13px;font-weight: bold;">
					<td style="width:30px;"></td>
					<td style="display: none">id</td>
					<td>物料编码</td>
					<td>物料名称</td>
					<td>入库时间</td>
					<td>数量</td>
					<td>批次号</td>
				</tr>
			</thead>
			<tbody id="mrlLine_tb">
			</tbody>
		</table>
	</div>
	</div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="../script/isDialog.js"></script>


<script type="text/javascript">
	//应用弹出框模块
	var dialogBox = null;
	var trackId;
	var trackOrder;
	var mrl;
	var workOrderCode;
	var noFeedList;
	var feedList;
	var noMrlLineList;
	var mrlLineList;
	var isFeedLotCode;
	var bomLotCode;
	var isHuJoinFullBox;
	var currentWorkCellCode;
	var startStyleStr = "aui-btn aui-btn-block btn_radius btn_color-start";
	var afterStyleStr = "aui-btn aui-btn-block btn_radius btn_color-after";
	var huWorkOrdersPeed;
	apiready = function() {
		// document.getElementById("searchDiv1").style.display="none";
		// document.getElementById("searchDiv2").style.display="none";
		api.parseTapmode();
		//应用弹出框模块
		dialogBox = api.require('dialogBox');
		// 派工单
		trackOrder = api.pageParam.trackOrder;
		if (trackOrder != null && trackOrder != "") {
			trackOrder = JSON.parse(trackOrder);
			mrl = api.pageParam.mrl;
			currentWorkCellCode = api.pageParam.currentWorkCellCode;
			trackId = trackOrder.sysid;
			document.getElementById("workOrderCode").value = trackOrder.workOrderId;
			document.getElementById("opCode").value = currentWorkCellCode;
			//  	$("#opName").html(currentWorkCellCode!=null&&trackOrder.opName!="" ? '本工序:' : "本工序:" + currentWorkCellCode);
			//  	$("#lastOpName").html(isEmpty(trackOrder.lastOpName) ? '前工序:' : "前工序:" + trackOrder.lastOpName);
			$("#mrl").html("产品:" + mrl);
			$("#planQty").html("计划:" + trackOrder.planQty);
			$("#effectiveQty").html("良品:" + (trackOrder.effectiveQty == null ? "0" : trackOrder.effectiveQty));
			$("#uneffectiveQty").html("不良品:" + (trackOrder.uneffectiveQty == null ? "0" : trackOrder.uneffectiveQty));

			$("#workOrderCode").attr("disabled", "disabled");
			$("#workCellCode").attr("disabled", "disabled");
			document.getElementById("workOrderCodeScan").style.display = "none";
			document.getElementById("workCellCodeScan").style.display = "none";
			// 查询线边库物料入库信息
			queryMrlLineRecord();
		}

		$("#huCode2").focus();
	};

	// 获取光标所在组件的id
	function getIdSelector() {
		var e = event || window.event;
		var el = e.srcElement || e.target;
		$("#" + el.id).select();
	}

	function queryMrlLineRecord() {
		api.showProgress({
			title: '数据加载中...',
			text: '请稍等...',
			duration: 15000,
		});
		var un = localStorage.getItem('un');
		var serverUrl = localStorage.getItem('serverUrl');
		var url = serverUrl + "/app/getLineStockInInfoByCell";
		var params = new Object();
		params.url = url;
		params.method = 'post';
		params.dataType = 'json';
		var data = {
			values: {
				un: un,
				appVersion: api.appVersion,
				cellCode: $("#opCode").val(),
				workOrderCode: trackOrder.workOrderId
			}
		};
		api.ajax({
			url: url,
			method: 'post',
			dataType: 'json',
			timeout: 30,
			returnAll: false,
			data: data
		}, function(ret, err) {

			if (ret) {
				var data = JSON.stringify(ret);
				var myobj = eval("(" + data + ")");
				//返回成功
				if (myobj.code == "0") {
					var noMrlLineList = eval(myobj.needlist); //应上料
					var mrlLineList = eval(myobj.inStocklist); //已上料
					api.hideProgress();
					$("#noMrlLine_tb").empty();
					var html1 = "";
					var seq1 = 1;
					for (var i = 0; i < noMrlLineList.length; i++) {
						var data = noMrlLineList[i];
						html1 += "<tr>";
						html1 += "<td id='noMrlLine" + seq1 + "' style='display:none'><input name='boxs3' type='checkbox' value='noMrlLine" + seq1 + "'></td>"
						html1 += "<td style='display:none'>" + data.sysid + "</td>"
						html1 += "<td>" + data.sitm + "</td>"
						html1 += "<td class='state' >" + data.mrl_name + "</td>"
							// html1 += "<td>" + data.createDate + "</td>"
						html1 += "<td>" + data.planqty + "</td>"
						html1 += "<td>" + data.stockinqty + "</td>"
						html1 += "</tr>";
						seq1++;
					}
					$("#noMrlLine_tb").html(html1);

					$("#mrlLine_tb").empty();
					var html2 = "";
					var seq2 = 1;
					for (var i = 0; i < mrlLineList.length; i++) {
						var data = mrlLineList[i];
						// var state = '';
						// if (data.state == 1) {
						// 	state = '待使用';
						// } else if (data.state == 2) {
						// 	state = '使用中';
						// } else if (data.state == 3) {
						// 	state = '已使用';
						// }
						// var qty = data.qty + "(" + data.measure + ")";
						// var remainNumber = data.remainNumber + "(" + data.measure + ")";
						html2 += "<tr>";
						html2 += "<td id='mrlLine" + seq2 + "' style='width:30px'><input name='boxs4' type='checkbox' value='mrlLine" + seq2 + "'></td>"
						html2 += "<td style='display:none'>" + data.sysid + "</td>"
						html2 += "<td>" + data.mrlCode + "</td>"
						html2 += "<td>" + data.mrlName + "</td>"
						html2 += "<td>" + data.createDate + "</td>"
						html2 += "<td>" + data.qty + "</td>"
						html2 += "<td>" + data.lotCode + "</td>"
						html2 += "</tr>";
						seq2++;
					}
					$("#mrlLine_tb").html(html2);

					//失败
				} else if (myobj.code == "1") {
					//清空表格数据
					$api.html($api.byId("tbodyHtml"), "");
					api.toast({
						msg: myobj.message,
						duration: 3000
					});
				}
			}
		});
	}
	//扫描
	function toScanner(str) {
		var moduleScanner = api.require('moduleScanner');
		var params = {
			top: 150, //扫描窗口的上边距
			width: 250, //扫描窗口的宽
			height: 250, //扫描窗口的高
			useColor: false, //是否使用自己设定的颜色(startColor和endColor),
			//如果不使用设定的颜色就使用默认的那张网格图
			startColor: '#0F08C8FF', //渐变起始颜色
			endColor: '#7F08C8FF', //渐变结束颜色
			animTime: 2200, //扫描动画时间,单位为毫秒
		};
		moduleScanner.toScannerActivityForResult(params, function(ret, err) {
			var SMequipCode = ret;
			//物料编码
			if (str == 'huCode2') {
				$("#huCode2").val(ret);

				tmSplit();
			}
		});
	}

	function onkeydownHuCode2() {
		if (event.keyCode == 13) {
			var text = document.getElementById("huCode2");
			tmSplit();
		}
	}

	function tmSplit() {
		var sm = $("#huCode2").val()
		var un = localStorage.getItem('un');
		var serverUrl = localStorage.getItem('serverUrl');
		var url = serverUrl + "/app/analysisBarCodeCommon";
		var data = {
			values: {
				tm: sm, //条码
				appVersion: api.appVersion,
				un: un
			}
		};
		api.ajax({
			url: url,
			method: 'post',
			dataType: 'json',
			timeout: 30,
			returnAll: false,
			data: data
		}, function(ret, err) {
			if (ret) {
				var data = JSON.stringify(ret);
				var myobj = eval("(" + data + ")");
				//成功
				if (myobj.code == '0') {

					var map = myobj.data;

					//自动保存
					saveMrl(map);
				} else if (myobj.code == '1') {

					$("#huCode2").val("");
					$("#huCode2").select();
					api.toast({
						msg: myobj.message,
						duration: 3000
					});
				}
			} else {
				alert(JSON.stringify(err));
			}
		});
	}

	function saveMrl(map) {
		//解析出条码中的 物料、批次 进行匹配明细
		//YDGYS-A,2810010-BQ01,2,2021031301,e7e26a1af372470987d7c5acb0040547,,,,,B-20210807-1918
		//供应商编码，物料编码，数量，批次号，不知道，，，，，箱号
		var tm = $("#huCode2").val()
		var mrlCode = map['mrlCode'];
		var lotCode = map['lotCode'];
		var qty = map['qty'];
		var tmID = map['tmID'];
		var chkBit = map['purchaseOrder']; //暂为校验位
		var boxnum = map['boxnum'];

		api.showProgress({
			title: '保存中...',
		});
		var un = localStorage.getItem('un');
		var serverUrl = localStorage.getItem('serverUrl');
		var url = serverUrl + "/app/upMrlInbillSaveByCell";
		var data = {
			un: un,
			workOrderCode: $("#workOrderCode").val(),
			cellCode: $("#opCode").val(),
			mrlCode: mrlCode,
			lotCode: lotCode,
			qty: qty,
			tmID: tmID,
			appVersion: api.appVersion,
			boxnum: boxnum,
			chkBit: chkBit,
			tm: tm,
		};
		$.ajax({
			type: 'post',
			async: false,
			url: url,
			data: data,
			dataType: 'json',
			success: function(ret) {
				if (ret) {
					var data = JSON.stringify(ret);
					var myobj = eval("(" + data + ")");
					//成功
					if (myobj.code == '0') {
						api.hideProgress();
						api.toast({
							msg: "保存成功",
							duration: 3000
						});

						//清空表单
						$("#huCode2").val("");
						queryMrlLineRecord();
					} else if (myobj.code == '1') {
						$("#huCode2").val("");
						api.hideProgress();
						$("#huCode2").select();
						api.toast({
							msg: myobj.message,
							duration: 3000
						});
					}
				} else {
					$("#huCode2").val("");
					api.hideProgress();
					$("#huCode2").select();
				}
			}
		});
	}

	function goReport() {
		var values = {};
		values["trackId"] = trackId;
		values["opId"] = trackOrder.opId;
		values["opName"] = trackOrder.opName;
		// console.log("trackOrder", trackOrder);
		values["workOrderCode"] = trackOrder.workOrderId;
		values["dispatchCode"] = trackOrder.dispatchCode;
		values["workCellCode"] = trackOrder.workCellCode;
		values["workCellName"] = trackOrder.workCellName;
		values["mrl"] = mrl;
		values["mrlCode"] = trackOrder.mrlCode;
		values["mrlName"] = trackOrder.mrlName;
		values["planQty"] = trackOrder.planQty;
		values["effectiveQty"] = trackOrder.effectiveQty;
		values["uneffectiveQty"] = trackOrder.uneffectiveQty;
		values["discardQty"] = trackOrder.discardQty;
		values["realTimeDaqQty"] = trackOrder.realTimeDaqQty;
		values["actualBeginDate"] = trackOrder.actualBeginDate;
		values["realTimeHuCode"] = trackOrder.realTimeHuCode;
		values["historyDaqQty"] = trackOrder.historyDaqQty;
		values["wsFirstChkFlag"] = trackOrder.wsFirstChkFlag;
		values["isUseHu"] = trackOrder.isUseHu;
		values["isWipFeed"] = trackOrder.isWipFeed;
		values["isFeedLotCode"] = trackOrder.isFeedLotCode;
		values["isLinkProdu"] = trackOrder.isLinkProdu;
		values["lastWorkCellCode"] = trackOrder.lastWorkCellCode;
		values["nextWorkCellCode"] = trackOrder.nextWorkCellCode;
		values["url"] = 'workCell-report_operate.html';
		values["title"] = '工位报工';


		api.sendEvent({
			name: 'feeding',
			extra: {

			}
		});
		api.closeFrame();
	}
</script>

</html>
